<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <h1 id="nameField">&nbsp;</h1>
    <script>
        window.addEventListener("load", initForm, false);

        function initForm() {
            document.getElementById("nameField").innerHTML = "Hello, " + document.cookie.split("=")[1];
        }
    </script>
</body>

</html>